/*
 * @Author: 瞿旺兴 18774621495@163.com
 * @Date: 2022-05-26 16:16:57
 * @LastEditors: 瞿旺兴 18774621495@163.com
 * @LastEditTime: 2022-05-26 16:19:22
 * @FilePath: \nien-vue3-admin\src\api\home\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

/*
    点击最新第一条待审批
*/ 
export const queryTaskByInstanceId = function (params) {
  return request({
    url: '/activiti/task/queryTaskByInstanceId',
    method: 'get',
    params,
  })
}

/*
    点击改变是否已读
*/ 
export const queryById = function (data) {
  return request({
    url: '/system/notice/read/queryById',
    method: 'post',
    data,
  })
}

/*
    快捷应用新增
*/ 
export const add = function (data) {
  return request({
    url: '/system/quick/application/add',
    method: 'post',
    data,
  })
}
/*
    快捷应用编辑
*/ 
export const updateByUserId = function (data) {
  return request({
    url: '/system/quick/application/updateByUserId',
    method: 'post',
    data,
  })
}

/*
    快捷应用查询
*/ 
export const queryByUserId = function (data) {
  return request({
    url: '/system/quick/application/queryByUserId',
    method: 'post',
    data,
  })
}

